<?php
if(!isset($GLOBALS['_vars'])) $GLOBALS['_vars'] = array(); 
$fields = array();
?><nav class="navbar navbar-expand-lg navbar-light bg-white">
  <div class="container"> <a class="navbar-brand" href="<?php echo $GLOBALS['cfg_cmsurl']; ?>/"><?php echo $GLOBALS['cfg_webname']; ?></a>
    <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarsExample07" aria-controls="navbarsExample07" aria-expanded="false" aria-label="Toggle navigation"> <span class="navbar-toggler-icon"></span> </button>
    <div class="collapse navbar-collapse" id="navbarsExample07">
      <ul class="navbar-nav mr-auto">
        <?php
$atts = array();
$atts['tagname'] = 'channel';
$atts['type'] = 'top';
$atts['row'] = '10';
$atts['"'] = '';
$blockValue = MakePublicTag($atts,$this->refObj,$fields); 
if(is_array($blockValue) && count($blockValue) > 0){
foreach( $blockValue as $key=>$fields )
{
?>
        <li class="nav-item active"> <a class="nav-link" href='[field:typeurl/]' [field:rel/]>[field:typename/]</a></li>
        <?php
}
}
?>
      </ul>
      <form class="form-inline my-2 my-md-0" name="formsearch" action="<?php echo $GLOBALS['cfg_cmsurl']; ?>/plus/search.php">
        <div class="input-group">
          <input type="hidden" name="kwtype" value="0" />
          <input name="q" type="text" class="form-control" id="search-keyword" value="在这里搜索..." onfocus="if(this.value=='在这里搜索...'){this.value='';}"  onblur="if(this.value==''){this.value='在这里搜索...';}" />
          <div class="input-group-append">
            <button type="submit" class="btn btn-outline-secondary dq-navs">搜索</button>
          </div>
        </div>
      </form>
      <div class="navbar-nav"><a class="nav-link bbs" href="<?php echo $GLOBALS['cfg_cmsurl']; ?>/forum.php">站长论坛</a></div>
    </div>
  </div>
</nav>